var invertTree = function(root) {
    if(root==null)return root
    const left = invertTree(root.left)
    const right = invertTree(root.right)
    root.left =right
    root.right = left
    return root
};

